package com.atguigu.gmall;

import org.apache.commons.lang3.StringUtils;

import java.util.ArrayList;

/**
 * Created on 2021/11/12.
 *
 * @author ${AUTHOR}
 */
public class join {
    public static void main(String[] args) {

        ArrayList<String> strings = new ArrayList<>();
        strings.add("1");
        strings.add("2");
        strings.add("3");
        strings.add("4");
        String join = StringUtils.join(strings, ",");
        System.out.println(join);

    }
}
